module.exports = plop =>{
    plop.setGenerator('component', {
        description: 'create a component',
        prompts:[
            {
                type: 'input',
                name: 'name',
                message:'component name',
                default:'MyComponent'
            }
        ],
        actions:[{
            type:'add',
            path:'src/components/{{name}}/{{name}}.js',
            templateFile: 'plop-templates/component.hbs'
        }]
    })
}